IsNodeTextUnique Method

Returns whether the Text passed is unique optionally excluding a Node object in the TreeView control.

Syntax

object.IsNodeTextUnique(Node, Text, CompareMethod )

The IsNodeTextUnique Method syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
Node Required. A valid Node (MSComctlLib.Node) object. If an empty Node object is passed, then all of the TreeView control's nodes will be tested.
Text Required. The text to test for uniqueness.
CompareMethod Optional. Specifies the type of string comparison, as described in settings. If the compare argument is Null, an error occurs.

Settings

The settings for CompareMethod method are:

Constant Setting Description
vbBinaryCompare 0 Performs a binary comparison.
vbTextCompare 1 (Default) Performs a textual comparison.

The settings for IsNodeTextUnique Method are:

Setting Description
True The Text is unique.
False A Node object already has Text.

Remarks